<?php

/*
#------------------------------------------------------------------------
# memovie - February 2010 (for Joomla 1.5)
#
# Copyright (C) 2007-2010 Gavick.com. All Rights Reserved.
# License: Copyrighted Commercial Software
# Website: http://www.gavick.com
# Support: support@gavick.com   
#------------------------------------------------------------------------ 
# Based on T3 Framework
#------------------------------------------------------------------------
# Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
# @license - GNU/GPL, http://www.gnu.org/copyleft/gpl.html
# Author: J.O.O.M Solutions Co., Ltd
#------------------------------------------------------------------------
*/



defined( '_JEXEC' ) or die( 'Restricted access' );

?>

<?php if($this->params->get('show_page_title',1)) : ?>

<h1 class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')) ?>">

	<span><?php echo $this->escape($this->params->get('page_title')) ?></span>

</h1>

<?php endif; ?>



<script type="text/javascript">

	Window.onDomReady(function(){

		document.formvalidator.setHandler('passverify', function (value) { return ($('password').value == value); }	);

	});

</script>



<form action="<?php echo JRoute::_('index.php?option=com_user#content'); ?>" method="post" id="josForm" name="josForm" class="form-register form-validate user">

	<?php if(isset($this->message)) :

		$this->display('message');

	endif; ?>

	<fieldset>

		<p class="form-des"><?php echo JText::_('REGISTER_REQUIRED'); ?></p>

		<p class="name">

			<label id="namemsg" for="name"><?php echo JText::_('Name'); ?>: *</label>

			<input type="text" name="name" id="name" value="<?php echo $this->escape($this->user->get('name')); ?>" class="inputbox validate required none namemsg" maxlength="50" />

		</p>

		<p class="user">

			<label id="usernamemsg" for="username"><?php echo JText::_('Username'); ?>: *</label>

			<input type="text" id="username" name="username"  value="<?php echo $this->escape($this->user->get('username')); ?>" class="inputbox validate required username usernamemsg" maxlength="25" />

		</p>

		<p class="email">

			<label id="emailmsg" for="email"><?php echo JText::_('Email'); ?>: *</label>

			<input type="text" id="email" name="email"  value="<?php echo $this->escape($this->user->get('email')); ?>" class="inputbox validate required email emailmsg" maxlength="100" />

		</p>

	</fieldset>

	<fieldset>

		<p class="pass">

			<label id="pwmsg" for="password"><?php echo JText::_('Password'); ?>: *</label>

			<input type="password" id="password" name="password" value="" class="inputbox required validate-password" />

		</p>

		<p class="verify_pass">

			<label id="pw2msg" for="password2"><?php echo JText::_('Verify Password'); ?>: *</label>

			<input type="password" id="password2" name="password2" value="" class="inputbox required validate-passverify" />

		</p>

	</fieldset>

	<button class="button validate" type="submit"><?php echo JText::_('Register'); ?></button>

	<input type="hidden" name="task" value="register_save" />

	<input type="hidden" name="id" value="0" />

	<input type="hidden" name="gid" value="0" />

	<?php echo JHTML::_( 'form.token' ); ?>

</form>

